<?php foreach ($agents as $agnet):?>
    <tr>
        <td>
            <?= $agnet['id_agent']?>
        </td>
        <td>
            <?= str_repeat('&nbsp;',$agnet['level']*5).'|--'.$agnet['name']?>
            <a href="/tool/agnetDetail?agent_id=<?= $agnet['id_agent']?>" class="am-btn am-btn-primary am-round">明细</a>
        </td>
        <td>
            <?= $agnet['level']?>
        </td>
        <td><?= $agnet['card_no']?></td>
        <td><?= $agnet['bank_name']?></td>
        <td><?= $agnet['id_number']?></td>
        <td><?= $agnet['phone']?></td>
        <td><?= $agnet['merchent_count']?></td>
        <td><?= round($agnet['trade_data'][0]['discount_sum']/100,2)?></td>
        <td><?= round($agnet['trade_data'][0]['amount_due_sum']/100,2)?></td>
        <td><?= $agnet['trade_data'][0]['trade_sum']?></td>
    </tr>
<?php endforeach;?>